
public class ConditionalAndExpr2 {
	String la;
	EqualityExpr ee;
	ConditionalAndExpr2 cae2;
	boolean fromIf;
	int lineNum;
	int charPos;
	
	public ConditionalAndExpr2 ( String la, EqualityExpr ee, ConditionalAndExpr2 cae2, int line, int charP){
		this.la = la;
		this.ee = ee;
		this.cae2 = cae2;
		this.lineNum = line;
		this.charPos = charP;
	}
	public String toString(){
		String ret = "";
		String s ="";
		if(la!= null)
			 s = la +"";
		if (ee != null) {
			s +=  ee.toString();
		}
		if (cae2 != null) {
			s +=  cae2.toString();
		}
		
		
		return ret+s;
	}
	public void check(Type t) throws SemanticException {
		if (ee != null) {
			//System.out.println("in COND 1");
			ee.fromIf = this.fromIf;
			ee.check(t);
		}
		if (cae2 != null) {
			//System.out.println("in COND 2");
			cae2.fromIf = this.fromIf;
			cae2.check(t);
		}
	}
}
